<!doctype html>
<html>
 <head>
  <meta charset="UTF-8">
  <title></title>
 </head>
 <body>
  <script>
//作业题1
	/*var x = 10;
	a = parseInt(a);
	if(x>0){
		document.write("大于0");
	}
	if(x<0){
		document.write("小于0");
	}
	if(x=0){
		document.write("等于0");
	}*/
//作业题2
	/*var a = 11;
	if(a%2==0){
		document.write("偶数");
	}else{document.write("奇数");
	}*/
//作业题3
	/*var tall = 177;
	var weight = (tall-108)*2;
	var a_weight = 90;
	if(a_weight>weight+10){
		document.write("偏重");
	}
	else if(a_weight>weight-10&&a_weight<weight+10){
		document.write("标准");
	}
	else if(a_weight<weight+10){
		document.write("偏瘦");
	}*/
//作业题4
	var year = 2000;
	if(year%400==0||year%4==0&&(!(year%100==0))){
		document.write("闰年");
	}else{
		document.write("非闰年");
	}
  </script>
 </body>
</html>
